package com.zensun.system.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zensun.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;

/**
 * 字典数据表 sys_dict_data
 *
 * @author gmk
 */
@ApiModel("字典数据表")
@Data
@TableName("sys_dict_data")
public class SysDictData extends BaseEntity<SysDictData> {
    private static final long serialVersionUID = 1L;

    /**
     * 字典编码
     */
    @ApiModelProperty("字典编码")
    @TableId
    @Null(message = "字典编码必须为空", groups = AddGrop.class)
    @NotNull(message = "字典编码不能为空", groups = UpdateGrop.class)
    private Long dictCode;

    /**
     * 字典排序
     */
    @ApiModelProperty("字典排序")
    @NotNull(message = "字典排序不能为空", groups = {AddGrop.class, UpdateGrop.class})
    private Integer dictSort;

    /**
     * 字典标签
     */
    @ApiModelProperty("字典标签")
    @NotBlank(message = "字典标签不能为空", groups = {AddGrop.class, UpdateGrop.class})
    private String dictLabel;

    /**
     * 字典键值
     */
    @ApiModelProperty("字典键值")
    @NotBlank(message = "字典键值不能为空", groups = {AddGrop.class, UpdateGrop.class})
    private String dictValue;

    /**
     * 字典类型
     */
    @ApiModelProperty("字典类型")
    @NotBlank(message = "字典类型不能为空", groups = {AddGrop.class, UpdateGrop.class})
    private String dictType;

    /**
     * 状态（0正常 1停用）
     */
    @ApiModelProperty("状态（0停用 1正常）")
    @NotBlank(message = "状态不能为空", groups = {AddGrop.class, UpdateGrop.class})
    private String status;


}
